package cn.yangliu.nacos.management.service.sys.impl;

import cn.yangliu.jpa.base.service.impl.JpaServiceImpl;
import cn.yangliu.nacos.management.entity.sys.Operation;
import cn.yangliu.nacos.management.repository.sys.OperationRepository;
import cn.yangliu.nacos.management.service.sys.OperationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-04
 */
@Service
@Transactional(rollbackFor = Throwable.class)
public class OperationServiceImpl extends JpaServiceImpl<Operation, Long, OperationRepository> implements OperationService {

    /**
     * Insert operation.
     *
     * @param entity the entity
     */
    @Override
    public void insertOperation(Operation entity) {
        repository.save(entity);
    }


}
